package com.atguigu.spring5.collection.bean;

/**
 * @author durant
 * @create 2021-10-30 14:35
 */
public class Orders {
    private String oname;

    public Orders() {
        System.out.println("第一步 执行无参构造创建bean实例");
    }

    public void setOname(String oname) {
        this.oname = oname;
        System.out.println("第二步 set方法设置值");
    }
    public void initMethod(){
        System.out.println("第三步");
    }
    public void destryMethod(){
        System.out.println("第五步");
    }
}
